package com.shenmazg6.controller;

import com.shenmazg6.service.TbWareService;
import com.shenmazg6.utils.ResultResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 军哥
 * @version 1.0
 * @description: TbWareController
 * @date 2022/12/27 10:43
 */

@RestController
@Slf4j
@RequestMapping(value = "/ware")
public class TbWareController {

    @Autowired
    TbWareService tbWareService;

    /**
     * 库存数据的同步
     * @return
     */
    @PostMapping(value = "/sync")
    public ResultResponse sync() {
        return tbWareService.sync();
    }



}
